package com.wxj.bank.module.modle.criteria;

/**
 * 比较类型
 */
public enum CompareType {

    Equal,NoEqual,GreaterEqual,LessEqual,Greater,Less;

    public CompareType value(int code){
        switch (code){
            case 0:
                return Equal;
            case 1:
                return NoEqual;
            case 2:
                return GreaterEqual;
            case 3:
                return LessEqual;
            case 4:
                return Greater;
            case 5:
                return Less;
            default:
                return null;
        }
    }

}
